package com.wangjiacai.utils.enums;

import lombok.Getter;

/**
 * Created by wangjc
 * 2017-06-11 18:56
 */
@Getter
public enum ResultEnum implements CodeEnum{

    SUCCESS(0, "成功"),

    ParamsInvalid(1,"参数无效"),

    ParamsMissing(2,"参数缺失"),

    CodeServiceInvalid(3, "短信服务商不可用不一致"),

    CodeError(4, "验证码错误"),

    ILLEGAL_USERS(100, "非法用户"),

    UNAUTHORIZED(401, "未授权"),

    SERVER_ERROR(500, "服务器错误"),

    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
